package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;

@Data
@Entity
@Table(name = "RT_COD_STANDARD")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_CODE_SEQUENCE_STANDARD
)
public class CodeStandardDO extends CTyEntityBaseDO {
    /**
     * 开发令 / 标准件号前13位
     */
    @TableField(value = "fix")
    private String fix;

    @Id
    private BigInteger oid;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_CODE_SEQUENCE_STANDARD
    )
    private String otype = RTTableTypeConstant.TYPE_CODE_SEQUENCE_STANDARD;

    @TableField(value = "flow_code")
    private String flowCode;


    public CodeStandardDO() {

    }
}
